package cn.itsource.org.mapper;

import cn.itsource.basic.mapper.BaseMapper;
import cn.itsource.org.domain.Employee;
import cn.itsource.system.domain.Menu;

import java.util.List;

/**
 * Mapper接口：员工
 */
public interface EmployeeMapper extends BaseMapper<Employee> {
    //添加员工的同时添加角色
    void addEmployeeRole(Employee employee);
    //删除员工的同时删除角色
    void deleteEmployeeRole(Long id);

    //查询部门中员工的权限集合
    List<String> getSns(Long id);

    List<Menu> getMenus(Long id);
}
